package com.ibiaoke.goods.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PtGoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart;

    protected int limitEnd;

    protected String groupByClause;

    public PtGoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(int limitEnd) {
        this.limitEnd=limitEnd;
    }

    public int getLimitEnd() {
        return limitEnd;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause=groupByClause;
    }

    public String getGroupByClause() {
        return groupByClause;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPtGoodsIdIsNull() {
            addCriterion("pt_goods_id is null");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdIsNotNull() {
            addCriterion("pt_goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdEqualTo(Integer value) {
            addCriterion("pt_goods_id =", value, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdNotEqualTo(Integer value) {
            addCriterion("pt_goods_id <>", value, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdGreaterThan(Integer value) {
            addCriterion("pt_goods_id >", value, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pt_goods_id >=", value, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdLessThan(Integer value) {
            addCriterion("pt_goods_id <", value, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("pt_goods_id <=", value, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdIn(List<Integer> values) {
            addCriterion("pt_goods_id in", values, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdNotIn(List<Integer> values) {
            addCriterion("pt_goods_id not in", values, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("pt_goods_id between", value1, value2, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pt_goods_id not between", value1, value2, "ptGoodsId");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameIsNull() {
            addCriterion("pt_goods_name is null");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameIsNotNull() {
            addCriterion("pt_goods_name is not null");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameEqualTo(String value) {
            addCriterion("pt_goods_name =", value, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameNotEqualTo(String value) {
            addCriterion("pt_goods_name <>", value, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameGreaterThan(String value) {
            addCriterion("pt_goods_name >", value, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameGreaterThanOrEqualTo(String value) {
            addCriterion("pt_goods_name >=", value, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameLessThan(String value) {
            addCriterion("pt_goods_name <", value, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameLessThanOrEqualTo(String value) {
            addCriterion("pt_goods_name <=", value, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameLike(String value) {
            addCriterion("pt_goods_name like", value, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameNotLike(String value) {
            addCriterion("pt_goods_name not like", value, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameIn(List<String> values) {
            addCriterion("pt_goods_name in", values, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameNotIn(List<String> values) {
            addCriterion("pt_goods_name not in", values, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameBetween(String value1, String value2) {
            addCriterion("pt_goods_name between", value1, value2, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andPtGoodsNameNotBetween(String value1, String value2) {
            addCriterion("pt_goods_name not between", value1, value2, "ptGoodsName");
            return (Criteria) this;
        }

        public Criteria andParamIsNull() {
            addCriterion("param is null");
            return (Criteria) this;
        }

        public Criteria andParamIsNotNull() {
            addCriterion("param is not null");
            return (Criteria) this;
        }

        public Criteria andParamEqualTo(String value) {
            addCriterion("param =", value, "param");
            return (Criteria) this;
        }

        public Criteria andParamNotEqualTo(String value) {
            addCriterion("param <>", value, "param");
            return (Criteria) this;
        }

        public Criteria andParamGreaterThan(String value) {
            addCriterion("param >", value, "param");
            return (Criteria) this;
        }

        public Criteria andParamGreaterThanOrEqualTo(String value) {
            addCriterion("param >=", value, "param");
            return (Criteria) this;
        }

        public Criteria andParamLessThan(String value) {
            addCriterion("param <", value, "param");
            return (Criteria) this;
        }

        public Criteria andParamLessThanOrEqualTo(String value) {
            addCriterion("param <=", value, "param");
            return (Criteria) this;
        }

        public Criteria andParamLike(String value) {
            addCriterion("param like", value, "param");
            return (Criteria) this;
        }

        public Criteria andParamNotLike(String value) {
            addCriterion("param not like", value, "param");
            return (Criteria) this;
        }

        public Criteria andParamIn(List<String> values) {
            addCriterion("param in", values, "param");
            return (Criteria) this;
        }

        public Criteria andParamNotIn(List<String> values) {
            addCriterion("param not in", values, "param");
            return (Criteria) this;
        }

        public Criteria andParamBetween(String value1, String value2) {
            addCriterion("param between", value1, value2, "param");
            return (Criteria) this;
        }

        public Criteria andParamNotBetween(String value1, String value2) {
            addCriterion("param not between", value1, value2, "param");
            return (Criteria) this;
        }

        public Criteria andWeightIsNull() {
            addCriterion("weight is null");
            return (Criteria) this;
        }

        public Criteria andWeightIsNotNull() {
            addCriterion("weight is not null");
            return (Criteria) this;
        }

        public Criteria andWeightEqualTo(Float value) {
            addCriterion("weight =", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualTo(Float value) {
            addCriterion("weight <>", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThan(Float value) {
            addCriterion("weight >", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualTo(Float value) {
            addCriterion("weight >=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThan(Float value) {
            addCriterion("weight <", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualTo(Float value) {
            addCriterion("weight <=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightIn(List<Float> values) {
            addCriterion("weight in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotIn(List<Float> values) {
            addCriterion("weight not in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightBetween(Float value1, Float value2) {
            addCriterion("weight between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotBetween(Float value1, Float value2) {
            addCriterion("weight not between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andSpecIsNull() {
            addCriterion("spec is null");
            return (Criteria) this;
        }

        public Criteria andSpecIsNotNull() {
            addCriterion("spec is not null");
            return (Criteria) this;
        }

        public Criteria andSpecEqualTo(String value) {
            addCriterion("spec =", value, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecNotEqualTo(String value) {
            addCriterion("spec <>", value, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecGreaterThan(String value) {
            addCriterion("spec >", value, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecGreaterThanOrEqualTo(String value) {
            addCriterion("spec >=", value, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecLessThan(String value) {
            addCriterion("spec <", value, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecLessThanOrEqualTo(String value) {
            addCriterion("spec <=", value, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecLike(String value) {
            addCriterion("spec like", value, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecNotLike(String value) {
            addCriterion("spec not like", value, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecIn(List<String> values) {
            addCriterion("spec in", values, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecNotIn(List<String> values) {
            addCriterion("spec not in", values, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecBetween(String value1, String value2) {
            addCriterion("spec between", value1, value2, "spec");
            return (Criteria) this;
        }

        public Criteria andSpecNotBetween(String value1, String value2) {
            addCriterion("spec not between", value1, value2, "spec");
            return (Criteria) this;
        }

        public Criteria andPtTypeIsNull() {
            addCriterion("pt_type is null");
            return (Criteria) this;
        }

        public Criteria andPtTypeIsNotNull() {
            addCriterion("pt_type is not null");
            return (Criteria) this;
        }

        public Criteria andPtTypeEqualTo(Integer value) {
            addCriterion("pt_type =", value, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtTypeNotEqualTo(Integer value) {
            addCriterion("pt_type <>", value, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtTypeGreaterThan(Integer value) {
            addCriterion("pt_type >", value, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("pt_type >=", value, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtTypeLessThan(Integer value) {
            addCriterion("pt_type <", value, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtTypeLessThanOrEqualTo(Integer value) {
            addCriterion("pt_type <=", value, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtTypeIn(List<Integer> values) {
            addCriterion("pt_type in", values, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtTypeNotIn(List<Integer> values) {
            addCriterion("pt_type not in", values, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtTypeBetween(Integer value1, Integer value2) {
            addCriterion("pt_type between", value1, value2, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("pt_type not between", value1, value2, "ptType");
            return (Criteria) this;
        }

        public Criteria andPtPriceIsNull() {
            addCriterion("pt_price is null");
            return (Criteria) this;
        }

        public Criteria andPtPriceIsNotNull() {
            addCriterion("pt_price is not null");
            return (Criteria) this;
        }

        public Criteria andPtPriceEqualTo(BigDecimal value) {
            addCriterion("pt_price =", value, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPtPriceNotEqualTo(BigDecimal value) {
            addCriterion("pt_price <>", value, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPtPriceGreaterThan(BigDecimal value) {
            addCriterion("pt_price >", value, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPtPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pt_price >=", value, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPtPriceLessThan(BigDecimal value) {
            addCriterion("pt_price <", value, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPtPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pt_price <=", value, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPtPriceIn(List<BigDecimal> values) {
            addCriterion("pt_price in", values, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPtPriceNotIn(List<BigDecimal> values) {
            addCriterion("pt_price not in", values, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPtPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pt_price between", value1, value2, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPtPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pt_price not between", value1, value2, "ptPrice");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceIsNull() {
            addCriterion("delivery_price is null");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceIsNotNull() {
            addCriterion("delivery_price is not null");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceEqualTo(BigDecimal value) {
            addCriterion("delivery_price =", value, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceNotEqualTo(BigDecimal value) {
            addCriterion("delivery_price <>", value, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceGreaterThan(BigDecimal value) {
            addCriterion("delivery_price >", value, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("delivery_price >=", value, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceLessThan(BigDecimal value) {
            addCriterion("delivery_price <", value, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("delivery_price <=", value, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceIn(List<BigDecimal> values) {
            addCriterion("delivery_price in", values, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceNotIn(List<BigDecimal> values) {
            addCriterion("delivery_price not in", values, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("delivery_price between", value1, value2, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andDeliveryPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("delivery_price not between", value1, value2, "deliveryPrice");
            return (Criteria) this;
        }

        public Criteria andImageIsNull() {
            addCriterion("image is null");
            return (Criteria) this;
        }

        public Criteria andImageIsNotNull() {
            addCriterion("image is not null");
            return (Criteria) this;
        }

        public Criteria andImageEqualTo(String value) {
            addCriterion("image =", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotEqualTo(String value) {
            addCriterion("image <>", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThan(String value) {
            addCriterion("image >", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualTo(String value) {
            addCriterion("image >=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThan(String value) {
            addCriterion("image <", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualTo(String value) {
            addCriterion("image <=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLike(String value) {
            addCriterion("image like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotLike(String value) {
            addCriterion("image not like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageIn(List<String> values) {
            addCriterion("image in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotIn(List<String> values) {
            addCriterion("image not in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageBetween(String value1, String value2) {
            addCriterion("image between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotBetween(String value1, String value2) {
            addCriterion("image not between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andThumImageIsNull() {
            addCriterion("thum_image is null");
            return (Criteria) this;
        }

        public Criteria andThumImageIsNotNull() {
            addCriterion("thum_image is not null");
            return (Criteria) this;
        }

        public Criteria andThumImageEqualTo(String value) {
            addCriterion("thum_image =", value, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageNotEqualTo(String value) {
            addCriterion("thum_image <>", value, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageGreaterThan(String value) {
            addCriterion("thum_image >", value, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageGreaterThanOrEqualTo(String value) {
            addCriterion("thum_image >=", value, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageLessThan(String value) {
            addCriterion("thum_image <", value, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageLessThanOrEqualTo(String value) {
            addCriterion("thum_image <=", value, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageLike(String value) {
            addCriterion("thum_image like", value, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageNotLike(String value) {
            addCriterion("thum_image not like", value, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageIn(List<String> values) {
            addCriterion("thum_image in", values, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageNotIn(List<String> values) {
            addCriterion("thum_image not in", values, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageBetween(String value1, String value2) {
            addCriterion("thum_image between", value1, value2, "thumImage");
            return (Criteria) this;
        }

        public Criteria andThumImageNotBetween(String value1, String value2) {
            addCriterion("thum_image not between", value1, value2, "thumImage");
            return (Criteria) this;
        }

        public Criteria andPtCountIsNull() {
            addCriterion("pt_count is null");
            return (Criteria) this;
        }

        public Criteria andPtCountIsNotNull() {
            addCriterion("pt_count is not null");
            return (Criteria) this;
        }

        public Criteria andPtCountEqualTo(Integer value) {
            addCriterion("pt_count =", value, "ptCount");
            return (Criteria) this;
        }

        public Criteria andPtCountNotEqualTo(Integer value) {
            addCriterion("pt_count <>", value, "ptCount");
            return (Criteria) this;
        }

        public Criteria andPtCountGreaterThan(Integer value) {
            addCriterion("pt_count >", value, "ptCount");
            return (Criteria) this;
        }

        public Criteria andPtCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("pt_count >=", value, "ptCount");
            return (Criteria) this;
        }

        public Criteria andPtCountLessThan(Integer value) {
            addCriterion("pt_count <", value, "ptCount");
            return (Criteria) this;
        }

        public Criteria andPtCountLessThanOrEqualTo(Integer value) {
            addCriterion("pt_count <=", value, "ptCount");
            return (Criteria) this;
        }

        public Criteria andPtCountIn(List<Integer> values) {
            addCriterion("pt_count in", values, "ptCount");
            return (Criteria) this;
        }

        public Criteria andPtCountNotIn(List<Integer> values) {
            addCriterion("pt_count not in", values, "ptCount");
            return (Criteria) this;
        }

        public Criteria andPtCountBetween(Integer value1, Integer value2) {
            addCriterion("pt_count between", value1, value2, "ptCount");
            return (Criteria) this;
        }

        public Criteria andPtCountNotBetween(Integer value1, Integer value2) {
            addCriterion("pt_count not between", value1, value2, "ptCount");
            return (Criteria) this;
        }

        public Criteria andConfigExpressIsNull() {
            addCriterion("config_express is null");
            return (Criteria) this;
        }

        public Criteria andConfigExpressIsNotNull() {
            addCriterion("config_express is not null");
            return (Criteria) this;
        }

        public Criteria andConfigExpressEqualTo(Integer value) {
            addCriterion("config_express =", value, "configExpress");
            return (Criteria) this;
        }

        public Criteria andConfigExpressNotEqualTo(Integer value) {
            addCriterion("config_express <>", value, "configExpress");
            return (Criteria) this;
        }

        public Criteria andConfigExpressGreaterThan(Integer value) {
            addCriterion("config_express >", value, "configExpress");
            return (Criteria) this;
        }

        public Criteria andConfigExpressGreaterThanOrEqualTo(Integer value) {
            addCriterion("config_express >=", value, "configExpress");
            return (Criteria) this;
        }

        public Criteria andConfigExpressLessThan(Integer value) {
            addCriterion("config_express <", value, "configExpress");
            return (Criteria) this;
        }

        public Criteria andConfigExpressLessThanOrEqualTo(Integer value) {
            addCriterion("config_express <=", value, "configExpress");
            return (Criteria) this;
        }

        public Criteria andConfigExpressIn(List<Integer> values) {
            addCriterion("config_express in", values, "configExpress");
            return (Criteria) this;
        }

        public Criteria andConfigExpressNotIn(List<Integer> values) {
            addCriterion("config_express not in", values, "configExpress");
            return (Criteria) this;
        }

        public Criteria andConfigExpressBetween(Integer value1, Integer value2) {
            addCriterion("config_express between", value1, value2, "configExpress");
            return (Criteria) this;
        }

        public Criteria andConfigExpressNotBetween(Integer value1, Integer value2) {
            addCriterion("config_express not between", value1, value2, "configExpress");
            return (Criteria) this;
        }

        public Criteria andSaleNumIsNull() {
            addCriterion("sale_num is null");
            return (Criteria) this;
        }

        public Criteria andSaleNumIsNotNull() {
            addCriterion("sale_num is not null");
            return (Criteria) this;
        }

        public Criteria andSaleNumEqualTo(Integer value) {
            addCriterion("sale_num =", value, "saleNum");
            return (Criteria) this;
        }

        public Criteria andSaleNumNotEqualTo(Integer value) {
            addCriterion("sale_num <>", value, "saleNum");
            return (Criteria) this;
        }

        public Criteria andSaleNumGreaterThan(Integer value) {
            addCriterion("sale_num >", value, "saleNum");
            return (Criteria) this;
        }

        public Criteria andSaleNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_num >=", value, "saleNum");
            return (Criteria) this;
        }

        public Criteria andSaleNumLessThan(Integer value) {
            addCriterion("sale_num <", value, "saleNum");
            return (Criteria) this;
        }

        public Criteria andSaleNumLessThanOrEqualTo(Integer value) {
            addCriterion("sale_num <=", value, "saleNum");
            return (Criteria) this;
        }

        public Criteria andSaleNumIn(List<Integer> values) {
            addCriterion("sale_num in", values, "saleNum");
            return (Criteria) this;
        }

        public Criteria andSaleNumNotIn(List<Integer> values) {
            addCriterion("sale_num not in", values, "saleNum");
            return (Criteria) this;
        }

        public Criteria andSaleNumBetween(Integer value1, Integer value2) {
            addCriterion("sale_num between", value1, value2, "saleNum");
            return (Criteria) this;
        }

        public Criteria andSaleNumNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_num not between", value1, value2, "saleNum");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDelStatusIsNull() {
            addCriterion("del_status is null");
            return (Criteria) this;
        }

        public Criteria andDelStatusIsNotNull() {
            addCriterion("del_status is not null");
            return (Criteria) this;
        }

        public Criteria andDelStatusEqualTo(Integer value) {
            addCriterion("del_status =", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusNotEqualTo(Integer value) {
            addCriterion("del_status <>", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusGreaterThan(Integer value) {
            addCriterion("del_status >", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("del_status >=", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusLessThan(Integer value) {
            addCriterion("del_status <", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusLessThanOrEqualTo(Integer value) {
            addCriterion("del_status <=", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusIn(List<Integer> values) {
            addCriterion("del_status in", values, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusNotIn(List<Integer> values) {
            addCriterion("del_status not in", values, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusBetween(Integer value1, Integer value2) {
            addCriterion("del_status between", value1, value2, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("del_status not between", value1, value2, "delStatus");
            return (Criteria) this;
        }

        public Criteria andIsSpecialIsNull() {
            addCriterion("is_special is null");
            return (Criteria) this;
        }

        public Criteria andIsSpecialIsNotNull() {
            addCriterion("is_special is not null");
            return (Criteria) this;
        }

        public Criteria andIsSpecialEqualTo(Integer value) {
            addCriterion("is_special =", value, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andIsSpecialNotEqualTo(Integer value) {
            addCriterion("is_special <>", value, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andIsSpecialGreaterThan(Integer value) {
            addCriterion("is_special >", value, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andIsSpecialGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_special >=", value, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andIsSpecialLessThan(Integer value) {
            addCriterion("is_special <", value, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andIsSpecialLessThanOrEqualTo(Integer value) {
            addCriterion("is_special <=", value, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andIsSpecialIn(List<Integer> values) {
            addCriterion("is_special in", values, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andIsSpecialNotIn(List<Integer> values) {
            addCriterion("is_special not in", values, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andIsSpecialBetween(Integer value1, Integer value2) {
            addCriterion("is_special between", value1, value2, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andIsSpecialNotBetween(Integer value1, Integer value2) {
            addCriterion("is_special not between", value1, value2, "isSpecial");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}